# ggplotly(cases_1)
plot_2 <- US %>% filter(Reported >= Sys.Date() - 60) %>% ggplot() + geom_col(aes(x=Reported,y=Deaths,fill=Deaths)) +
theme(axis.text.x = element_text(angle = 45)) +
labs(x="US Date Reported",y="Total Deaths",title=" US COVID-19: Deaths by Date")
ggplotly(plot_2)
JHU_US %>% filter(Date >= Sys.Date() -60) %>%
ggplot() + geom_col(aes(x=Date,y=na.omit(Recovered),fill=Recovered)) +
theme(axis.text.x = element_text(angle = 45)) +
labs(title="USA COVID-19: Accumulated Recoveries by Date",x="Date Reported",y="Total Cases") + scale_y_continuous(labels = scales::comma) +
scale_fill_gradient(labels = scales::comma)
US %>% ggplot(aes(x=Reported,y=Cases)) + geom_line() +
geom_smooth() + scale_y_log10() +
labs(title="US Accumulated Cases by Date(Log10)",x="Date",y=" Log of Cases")
## Warning: Transformation introduced infinite values in continuous y-axis
## Warning: Transformation introduced infinite values in continuous y-axis
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
## Warning: Removed 44 rows containing non-finite values (stat_smooth).
US %>% ggplot(aes(x=Reported,y=Deaths)) + geom_line() +
geom_smooth() + scale_y_log10() +
labs(title="US Accumulated Deaths by Date(Log10)",x="Date",y=" Log of Cases")
## Warning: Transformation introduced infinite values in continuous y-axis
## Warning: Transformation introduced infinite values in continuous y-axis
## `geom_smooth()` using method = 'loess' and formula 'y ~ x'
## Warning: Removed 62 rows containing non-finite values (stat_smooth).